package com.carcenter.order.service.impl;

import com.carcenter.order.entity.AppointmentDetail;
import com.carcenter.order.mapper.AppointmentDetailMapper;
import com.carcenter.order.service.IAppointmentDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author car
 * @since 2025-07-16
 */
@Service
public class AppointmentDetailServiceImpl extends ServiceImpl<AppointmentDetailMapper, AppointmentDetail> implements IAppointmentDetailService {

    @Autowired
    AppointmentDetailMapper appointmentDetailMapper;

    @Override
    public List<AppointmentDetail> getProductServiceListByStoreId(Integer storeId, LocalDateTime firstDayStartTime, LocalDateTime lastDayEndTime) {

        List<AppointmentDetail> list = appointmentDetailMapper.getProductServiceListByStoreId(storeId, firstDayStartTime, lastDayEndTime);
        return list;

    }
}
